<!-- 页面背景图 -->
<template>
	<view class="page-bg" :style="{'height': pageBgHeight}">
		<image class="bg" src="/pagesB-shop-center/static/images/page-bg.png" mode="scaleToFill"></image>
	</view>
</template>

<script setup>
	const pageBgHeight = function() {
		const statusBarHeight = getApp().globalData.statusBarHeight;
		const navBarHeight = getApp().globalData.navBarHeight;
		return statusBarHeight + navBarHeight + 'px';
	}();
</script>

<style lang="scss" scoped>
	.page-bg {
		position: absolute;
		top: 0;
		left: 0;
		z-index: -1;
		width: 100%;
		padding-bottom: 212rpx;
		overflow: hidden;

		.bg {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
		}
	}
</style>